﻿<Window x:Class="MDCAdminTool.Controls.NewCacheNameWin"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:System="clr-namespace:System;assembly=mscorlib" xmlns:MDCAdminTool="clr-namespace:MDCAdminTool;assembly=E4D.AppFabric.Entities" Title="New Cache Name" Height="280" Width="300"
    WindowStyle="ToolWindow" WindowStartupLocation="CenterOwner">
    
   <DockPanel Margin="8">     
       
      <Button Name="Newbtn" DockPanel.Dock="Bottom"
         Click="Newbtn_Click"
         Height="23" HorizontalAlignment="Right"  Margin="3,7,3,3"  
         VerticalAlignment="Bottom" Width="75">New</Button>

      <GroupBox>
         <GroupBox.Header>
            <StackPanel Orientation="Horizontal">
               <StaticResource ResourceKey="GetHostConfig16" />
               <TextBlock Text="Cache Name Config" Margin="5,0,0,0"/>
            </StackPanel>
         </GroupBox.Header>
         <UniformGrid Columns="2" Rows="6" >

            <TextBlock Margin="3" ToolTip="The name of the cache.">Name:</TextBlock>
            <TextBox Name="tbName" Text="Name1" Margin="3" Height="23"/>

            <TextBlock Margin="3" ToolTip="A value of 1 enables the high availability feature. A value of 0 disables the high availability feature. The default value is 0.">IsHighAvailability:</TextBlock>
            <ComboBox Name="tbIsHighAvailability" SelectedIndex="1" Margin="3" Height="23">
               <System:Boolean>True</System:Boolean>
               <System:Boolean>False</System:Boolean>
            </ComboBox>

            <TextBlock Margin="3" ToolTip="A value of LRU enables Least Recently Used eviction. A value of none disables eviction. The default value is LRU.">Eviction:</TextBlock>
            <ComboBox Name="tbEviction" SelectedIndex="0" Margin="3" Height="23">
               <MDCAdminTool:Eviction>LRU</MDCAdminTool:Eviction>
               <MDCAdminTool:Eviction>None</MDCAdminTool:Eviction>
            </ComboBox>

            <TextBlock Margin="3" ToolTip="The default time-out for objects stored in cache before they expire, in minutes. The default value is 10.">TTL (1 - 10):</TextBlock>
            <TextBox Name="tbTTL" Text="10" Margin="3" Height="23"/>

            <TextBlock Margin="3" ToolTip="Use this switch parameter to disable expiration; otherwise expiration will be enabled at the default settings.">IsExpirable:</TextBlock>
            <ComboBox Name="tbIsExpirable" SelectedIndex="1" Margin="3" Height="23">
               <System:Boolean>True</System:Boolean>
               <System:Boolean>False</System:Boolean>
            </ComboBox>

            <TextBlock Margin="3" ToolTip=" When this parameter is present, the cache notifications feature will be enabled.">Notifications Enabled:</TextBlock>
            <ComboBox Name="tbNotificationsEnabled" SelectedIndex="1" Margin="3" Height="23">
               <System:Boolean>True</System:Boolean>
               <System:Boolean>False</System:Boolean>
            </ComboBox>

         </UniformGrid>
      </GroupBox>     
      
   </DockPanel>
</Window>
